function loadDistrict(provinceid){  
	$.ajax({
		url: "/public/user/load-district/",
            type: "POST",
            	data: {'provinceid': provinceid
            },
            success: function(data) {
            	//alert(data);
  				var getData=JSON.parse(data);
  					var str='<div class="form_row_regis"><label class="contact_regis"><strong>Quận/Huyện:(*)</strong></label>';
                  str+='<select name="selDistrict" id="selDistrict">';
                  str+='<option selected="selected">Chọn quận/huyện</option>';
  				for(var i=0;i<getData.length;i++){
  					str+='<option value="'+getData[i]['id']+'">'+getData[i]['name']+'</option>;'
  				}
  				str+='</select></div>';
  				document.getElementById("generatedistrict").innerHTML=str;
            },
            error: function() {
            	alert('error');
            }
		
	});
}
